package cn.yitun.chat.yitunserverfilecore.manage;

import cn.yitun.chat.yitunserverfilecore.config.FileServerConfig;
import org.springframework.stereotype.Service;

/**
 * @date 2019-07-06 14:18:07
 * @author yitun
 */
@Service
public class FileServerConfigManager {

	private FileServerConfig fileServerConfig;

	public FileServerConfig getFileServerConfig() {
		return fileServerConfig;
	}

	public void setFileServerConfig(FileServerConfig fileServerConfig) {
		this.fileServerConfig = fileServerConfig;
	}

	public String getSavePath() {
		return null != fileServerConfig ? fileServerConfig.getPath() : null;
	}

	public String getServerUrl() {
		return null != fileServerConfig ? fileServerConfig.getUrl() : null;
	}
}
